<div class="mainnav clr">
    <div class="nav">
        <ul class="listnav count_7">
            <li <?php if($com=="") echo'class="active"'; ?>><a href="http://vietancorp.vn">Trang chủ</a>                </li>
            <li <?php if($com=='about') echo'class="active"'; ?>><a href="gioi-thieu.html">Giới thiệu</a>                </li>
            <li <?php if($com==camera) echo'class="active"'; ?>><a href="javascript:void(0)">Camera</a>

                <ul class="submenu" style="visibility: hidden;">
                    <?php $cam = $tc->loai_theotheloai(1);
                    while($row=  mysql_fetch_assoc($cam)){?>
                    <li><a href="<?php echo $row['TenLT_KD']?>.html"><?php echo $row['TenLT']?></a></li>
                    <?php } ?>
                </ul>
            </li>
            <li <?php if($com=='daughihinh') echo'class="active"'; ?>><a href="javascript:void(0)">Đầu ghi hình</a>
                <ul class="submenu" style="visibility: hidden;">
                     <?php $cam = $tc->loai_theotheloai(2);
                    while($row=  mysql_fetch_assoc($cam)){?>
                    <li><a href="<?php echo $row['TenLT_KD']?>.html"><?php echo $row['TenLT']?></a></li>
                    <?php } ?>

                </ul>
            </li>
            <li <?php if($com=='baotrom') echo'class="active"'; ?>><a href="javascript:void(0)">Báo trộm - báo cháy</a>
                <ul class="submenu" style="visibility: hidden;">
                     <?php $cam = $tc->loai_theotheloai(12);
                    while($row=  mysql_fetch_assoc($cam)){?>
                    <li><a href="<?php echo $row['TenLT_KD']?>.html"><?php echo $row['TenLT']?></a></li>
                    <?php } ?>
                </ul>
            </li>
            <li <?php if($com=='linhphukien') echo'class="active"'; ?>><a href="linh-phu-kien.html">Linh phụ kiện</a>                </li>
            <li <?php if($com=='contact') echo'class="active"'; ?>><a href="lien-he.html">Liên hệ</a>                </li>

        </ul>            </div>

</div>